home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Forms / QuitForm.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  854 b   |  35 lines

  1. package Forms
  2. {
  3.    import flash.events.MouseEvent;
  4.    import flash.text.TextField;
  5.    
  6.    [Embed(source="/_assets/assets.swf", symbol="Forms.QuitForm")]
  7.    public class QuitForm extends CluelessBaseForm
  8.    {
  9.        
  10.       
  11.       public var _bBack:ButtonRound;
  12.       
  13.       internal var _sProfileName:String = "";
  14.       
  15.       public var _bQuit:ButtonRound;
  16.       
  17.       public var _tfText:TextField;
  18.       
  19.       public function QuitForm()
  20.       {
  21.          _sProfileName = "";
  22.          super();
  23.          setBackButton(_bBack);
  24.          installMouseOverSound(_bQuit);
  25.          installMouseOverSound(_bBack);
  26.          _bQuit.addEventListener(MouseEvent.CLICK,onQuit,false,0,true);
  27.       }
  28.       
  29.       protected function onQuit(param1:MouseEvent) : void
  30.       {
  31.          setFormPermanent(new UpsellForm());
  32.       }
  33.    }
  34. }
  35.